package wei.xinya.core.inheritance;

public class TestDog {
	public static void main(String[] args) {
        Animal a = new Animal();
        Animal b = new Dog();

        a.move();
        b.move();
        ((Dog) b).bark();
        b.setName("er gou");
        b.test(b.getName());
    }
}
